<template>
  <div @click="fatherFn">
    <!-- 不让他冒泡到div 可以提交 -->
    <button @click.stop="btn" >stop组织事件冒泡</button>

              <!-- @click.prevent 阻止默认行为 -->
    <a  @click.prevent href="https://weixin.qq.com/">阻止默认行为</a>
  </div>
</template>

<script>
export default {
  name: 'Vue2App',

  data() {
    return {
      
    };
  },

   methods: {
     fatherFn(){
        console.log('出发了');
     },
     btn(){
       console.log('btn');
     }
    
  },
};
</script>

<style lang="scss" scoped>

</style>